home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / pascal / swag / crt.swg / 0005_CPU Delay.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1993-05-28  |  304 b   |  15 lines

  1. {
  2. > does anyone have an accurate BAsm Delay routine that is
  3. > compatible With the one in the Crt Unit? please post it...
  4. }
  5.  
  6. Procedure Delay(ms : Word); Assembler;
  7. Asm {machine independent Delay Function}
  8.   mov ax, 1000;
  9.   mul ms;
  10.   mov cx, dx;
  11.   mov dx, ax;
  12.   mov ah, $86;
  13.   int $15;
  14. end;
  15.